package com.example.demo.model;


import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Controller;

import java.util.List;

@Data
@Controller
@ConfigurationProperties(prefix = "animals")
public class Animal {
    private List<String> name;
    // 这里name 必须和集合名称 一致
}
